package com.elive.service;

import com.elive.common.ServerResponse;
import com.elive.pojo.Apartment;
import com.elive.vo.ApartmentInfoVo;
import com.github.pagehelper.PageInfo;

/**
 * Created by wuyin on 2018/3/13.
 */
public interface IApartmentService {
    ServerResponse<PageInfo> getApartmentListByHostId(int pageNum, int pageSize, Integer hostId);

    ServerResponse<String> addApartment(Apartment apartment, String[] deviceIdList, String[] serviceIdList);

    ServerResponse<ApartmentInfoVo> getApartmentInfo(Integer apartmentId);

    ServerResponse<String> editApartmentInfo(Apartment apartment, String[] deviceIdList, String[] serviceIdList);

    ServerResponse<String> deleteApartment(Integer apartmentId);

    ServerResponse<PageInfo> getRecommendApartmentList(int pageNum, int pageSize);

    ServerResponse<PageInfo> getApartmentListByCityId(Integer cityId, int pageNum, int pageSize);

    ServerResponse<Apartment> updateLikeCountByApartmentId(Integer apartmentId, Integer userId);

    ServerResponse<Apartment> cancelLikeCountByApartmentId(Integer apartmentId, Integer userId);

    ServerResponse<Boolean> isLiked(Integer apartmentId, Integer userId);
}
